package com.lz.service.lg;

import com.lz.entity.MortgageSheet;
import com.lz.repository.lg.VO.MortgageVO;

import java.util.List;
import java.util.Map;

public interface MortgageSheetServicelg {
	//保存按揭单
	void addMortgage(MortgageVO mortgageVO);
	
	//条件查询总条数
	Integer mortgageRows(Map map);
	
	//条件分页查询
	List<MortgageVO> mortgageList(Map map,Integer pageNo,Integer pageSize);
	
	//根据主键查询到对应按揭单信息
	MortgageVO selectByPK(Integer MortgageNo);

	//查询到数据库中主键最大值
	Integer selectMaxId();

	//保存修改后的按揭单信息
	void changeMortgageSheet(MortgageVO mortgageVO);

	//根据主键得到按揭单信息
	MortgageSheet findByPK(Integer mortgageSheetNo, MortgageVO mortgageVO);

	//根据主键删除按揭单
	void byPK(Integer mortgageSheetNo);

	//根据主键提交按揭单
	void submitMortgage(Integer mortgageSheetNo);



}
